package com.zhumo.sz.entity.subway;

import com.zhumo.sz.common.annotation.NestedEntity;
import com.zhumo.sz.gaode.FirstPoi;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.kafka.common.protocol.types.Field;

/**
 * @author  zhumo
 * @time 2024-03-02
 * @comment  重构的地铁站点信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "地铁站点信息对象",description = "地铁站点信息表")
public class  SubwayStationInfo {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("地铁线路编码")
    private String lineCode;

    //不符合3NN
    @ApiModelProperty("地铁线路名称")
    private String lineName;

    @ApiModelProperty("地铁站点名称")
    private String siteName;

    @ApiModelProperty("地铁站点编码")
    private String siteCode;

    @ApiModelProperty("地铁站点唯一标识")
    private String operCode;   //站点唯一标识

    @ApiModelProperty("站点pic码")
    private String sitePic;

    @ApiModelProperty("高德地址编码")
    private String gdAddressCode; //高德地址编码

    @ApiModelProperty("高德国家")
    private String gdCountry;

    @ApiModelProperty("高德省份")
    private String gdProvince;

    @ApiModelProperty("高德城市")
    private String gdCity;

    @ApiModelProperty("高德城市编码")
    private String gdCityCode;

    @ApiModelProperty("高德地区")
    private String gdDistrict;

    @ApiModelProperty("高德街道")
    private String gdStreet;

    @ApiModelProperty("高德街道编码")
    private String gdStreetCode;

    @ApiModelProperty("高德经度")
    private Double gdLng;

    @ApiModelProperty("高德纬度")
    private Double gdLat;

    @ApiModelProperty("站点介绍")
    private String siteIntroduced;  //站点介绍

    @ApiModelProperty("临近道路")
    private String nearRoad;

    @ApiModelProperty("商圈")
    private String business;

    @ApiModelProperty("临近#")
    private String nearMail;

    @ApiModelProperty("poi结果")
    @NestedEntity
    private FirstPoi<String> poi;

    @ApiModelProperty("版本")
    private String version;

    public String getAddress(){
        return "广东省深圳市" + siteName +"地铁站";
    }
}
